package DAO;

import java.sql.*;

class Conexion{
    public static Connection getConexion(){
        try{
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            Connection cn = DriverManager.getConnection(
                "jdbc:sqlserver://localhost:1433;databaseName=BDArticulos",
                "sa", "123");
                return cn;
        }catch(Exception e){
            e.printStackTrace();
            return null;
        }
    }
}
